gtk/gtk.symbols new function to get an action's accel_closure (Fixes
authorMichael Natterer <mitch@imendio.com>
Fri, 10 Jun 2005 19:11:31 +0000 (19:11 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Fri, 10 Jun 2005 19:11:31 +0000 (19:11 +0000)
2005-06-10  Michael Natterer  <mitch@imendio.com>

* gtk/gtk.symbols
* gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
to get an action's accel_closure (Fixes #141750 and #148106).

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtk.symbols
gtk/gtkaction.c
gtk/gtkaction.h

index 65786e3586e4266f70eca5be80b82c1836049aa5..f65ea02c01704982f71c1ca8189dc14247806975 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-10  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtk.symbols
+       * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
+       to get an action's accel_closure (Fixes #141750 and #148106).
+
 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/gen-keyname-table.pl: Generate N_() calls for
index 65786e3586e4266f70eca5be80b82c1836049aa5..f65ea02c01704982f71c1ca8189dc14247806975 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-10  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtk.symbols
+       * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
+       to get an action's accel_closure (Fixes #141750 and #148106).
+
 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/gen-keyname-table.pl: Generate N_() calls for
index 65786e3586e4266f70eca5be80b82c1836049aa5..f65ea02c01704982f71c1ca8189dc14247806975 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-10  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtk.symbols
+       * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
+       to get an action's accel_closure (Fixes #141750 and #148106).
+
 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/gen-keyname-table.pl: Generate N_() calls for
index 2ae64fa07cac75044343afc43e1db04aa1980643..3ef52afe8e2ae9277ec2376ecb861c9e0b12c4f2 100644 (file)
@@ -138,6 +138,7 @@ gtk_action_create_menu_item
 gtk_action_create_tool_item
 gtk_action_disconnect_accelerator
 gtk_action_disconnect_proxy
+gtk_action_get_accel_closure
 gtk_action_get_accel_path
 gtk_action_get_name
 gtk_action_get_proxies
index 51bfa2c38faaef462767c9d097a2efeb3cb7e9bb..ed893edacac0937ffd10cee50c25019c9c0cc884 100644 (file)
@@ -1491,6 +1491,25 @@ gtk_action_get_accel_path (GtkAction *action)
     return NULL;
 }
 
+/**
+ * gtk_action_get_accel_closure:
+ * @action: the action object
+ *
+ * Returns the accel closure for this action.
+ *
+ * Since: 2.8
+ *
+ * Returns: the accel closure for this action. The returned closure is
+ *          owned by GTK+ must and not be unrefed or modified.
+ */
+GClosure *
+gtk_action_get_accel_closure (GtkAction *action)
+{
+  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
+
+  return action->private_data->accel_closure;
+}
+
 
 /**
  * gtk_action_set_accel_group:
index ddf3c3c42e94a61ddb4183159335128133305bfc..c7e9f9d383492dd939a4ff8077d0d31c81eb7bd9 100644 (file)
@@ -107,6 +107,7 @@ GSList*      gtk_action_get_proxies            (GtkAction     *action);
 void         gtk_action_connect_accelerator    (GtkAction     *action);
 void         gtk_action_disconnect_accelerator (GtkAction     *action);
 G_CONST_RETURN gchar *gtk_action_get_accel_path (GtkAction     *action);
+GClosure    *gtk_action_get_accel_closure      (GtkAction     *action);
 
 /* protected ... for use by child actions */
 void         gtk_action_block_activate_from    (GtkAction     *action,